package jp.co.sega.sonic_jump.monthly.sum;

import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import jp.co.sega.sonic_jump.monthly.sum.PlatformStandard.Define;

public abstract class Device extends SurfaceView implements SurfaceHolder.Callback {
    public static final boolean ANCIENT_DEVICE = false;
    public static final int BUTTON_HEIGHT = 44;
    public static final int BUTTON_MOVE_X = 47;
    public static final int BUTTON_MOVE_Y = 0;
    public static final int BUTTON_WIDTH = 47;
    public static final int CHARACTER_HEIGHT = 14;
    public static final int CHARACTER_MIN_HEIGHT = 16;
    public static final int CHARACTER_SPACING = 14;
    public static final int CHARACTER_WIDTH = 14;
    public static final int CLOCK_SPEED = 40;
    public static final boolean DEBUG = false;
    public static final boolean DOUBLE_BUFFER = true;
    public static final boolean E700_HACK = false;
    public static final boolean FAKE_SERVICE_REPAINTS = false;
    public static final boolean FULL_SCREEN_MODE = true;
    public static final boolean G6 = false;
    public static final int GAP_SPCAING = 6;
    public static final boolean GARBAGE_COLLECTION = true;
    public static final int HANDSET_SPEED = 1;
    public static final boolean LARGE_JAR = true;
    public static final int LEVEL_SELECT_YOFFSET = -90;
    public static final int LINE_SPACING = 35;
    public static final boolean LOADSPEED_SLOW = false;
    public static final int MINIMUM_SLEEP = 0;
    public static final boolean NOKIA_DEVICE = false;
    public static final boolean NORMAL_SOFTKEYS = false;
    public static int NUMBER_LOOPS = 1;
    public static final int PLATFORM_TRANS_X_MAGNITUDE = 0;
    public static final boolean PRELOAD_GRAPHICS = true;
    public static final boolean PRELOAD_MAPS = true;
    public static final int REPLACE_DOWN = 56;
    public static final int REPLACE_FIRE = 53;
    public static final int REPLACE_LEFT = 52;
    public static final int REPLACE_LEFT_FUNC = 49;
    public static final int REPLACE_RIGHT = 54;
    public static final int REPLACE_RIGHT_FUNC = 51;
    public static final int REPLACE_UP = 50;
    public static final int SCREEN_RESOLUTION = 360;
    public static final boolean SMALL_SPRITES = false;
    public static final boolean SOFTKEY_DRAW = false;
    public static final boolean SOFTKEY_ICONS = true;
    public static final int SOUND_AVAILABLE = 2;
    public static final boolean SPLIT_SWITCH_STATEMENTS = false;
    public static final int VIBRATION_AVAILABLE = 1;
    public static final int[] hugefontw = {11, 11, 18, 11, 17, 17, 17, 17, 17, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 17, 11, 17, 17, 17, 23, 17, 17, 17, 20, 17, 17, 17, 17, 17, 23, 17, 17, 17, 11};
    public static final int[] hugefontx = {411, 0, 19, 31, 49, 67, 85, 103, 121, 140, 159, 178, 196, 214, 232, 250, 268, 286, 304, 322, 334, 352, 370, 388, 0, 18, 36, 53, 74, 92, 110, 128, 146, 164, 188, 206, 223, 240};
    public static final int[] zonemapheight = {896, Graphics.TOP, Graphics.HCENTER, 896, Graphics.HCENTER, Graphics.HCENTER};
    protected Graphics G = null;
    protected int GameHeight;
    protected int GameWidth = SCREEN_RESOLUTION;
    protected Activity activity = null;
    protected Context context = null;
    public String debugstring = Define.PACKAGE_ID;
    public int[] framelist;
    protected SurfaceHolder holder;
    protected Canvas m_Canvas = null;
    protected BitmapFactory.Options m_Option = null;
    protected Paint m_Paint = null;
    public Resources m_res = getResources();
    public int[] zonemapptr;

    
    public Device() {
        super(Shell.sInstance);
        this.context = null;
        this.activity = null;
        this.m_res = getResources();
        this.m_Canvas = null;
        this.G = null;
        this.m_Paint = null;
        this.m_Option = null;
        this.GameWidth = SCREEN_RESOLUTION;
        this.GameHeight = 640;
        this.debugstring = "";
        this.framelist = new int[]{69, 27, 384, 0, 69, 24, 384, 27, 69, 27, 384, 99, 69, 27, 384, 51, 69, 24, 384, 78, 69, 21, 384, 102, 19, 27, 278, 57, 9, 27, 368, 57, 19, 27, 257, 57, 27, 27, 179, 57, 69, 27, 297, 54, 99, 13, 0, 153, 99, 13, 0, 223, 69, 21, 69, 60, 35, 50, 99, 0, 35, 50, 216, 120, 34, 62, 0, 66, 34, 62, 216, 58, 40, 58, 0, 0, 40, 58, 216, 0, 36, 36, 177, 0, 36, 36, 259, 63, 34, 33, 140, 45, 36, 36, 259, 101, 36, 36, 138, 0, 34, 33, 258, 138, 69, 26, 384, 51, 69, 23, 384, 77, 27, 27, 206, 57, 22, 21, 233, 57, 48, 48, 44, 0, 44, 47, 39, 106, 45, 36, 58, 108, 48, 46, 39, 55, 19, 27, 142, 57, 38, 33, 156, 81, 9, 13, 368, 44, 37, 46, 174, 35, 37, 46, 217, 210, 12, 45, 117, 147, 16, 16, 114, 198, 16, 16, 137, 198, 22, 41, 111, 214, 50, 40, 90, 60, 50, 40, 217, 170, 56, 54, 117, 0, 55, 54, 177, 0, 55, 53, 234, 0, 51, 50, 300, 0, 50, 59, 158, 198, 50, 59, 256, 0, 69, 15, 0, 66, 90, 14, 0, 166, 99, 21, 0, 180, 99, 21, 0, 201, 99, 18, 0, 236, 99, 21, 0, 254, 99, 18, 99, 257, 37, 42, 491, 0, 37, 42, 453, 0, 37, 42, 491, 42, 37, 42, 453, 42, 52, 43, 279, 0, 52, 43, 331, 0, 52, 41, 279, 43, 52, 41, 331, 43, 64, 43, 517, 0, 64, 43, 517, 43, 64, 37, 453, 64, 64, 37, 453, 27, 39, 48, 453, 0, 39, 48, 453, 48, 43, 26, 453, 52, 43, 26, 453, 78, 43, 26, 453, 0, 43, 26, 453, 26, 109, 56, 0, 84, 109, 54, 0, 0, 107, 56, 109, 84, 106, 56, 216, 84, 103, 56, 325, 84, 108, 54, 192, 0, 24, 24, 383, 0, 24, 24, 383, 24, 24, 24, 383, 48, 24, 24, 405, 0, 24, 24, 405, 24, 24, 24, 405, 48, 13, 19, 354, 0, 14, 19, 366, 0, 14, 19, 354, 23, 8, 16, 370, 26, 109, 56, 0, 194, 109, 54, 106, 140, 107, 56, 108, 194, 109, 56, 216, 195, 103, 56, 217, 140, 108, 54, 0, 140, 48, 48, 255, 209, 44, 47, 309, 48, 45, 37, 306, 98, 47, 46, 306, 0, 39, 48, 492, 0, 39, 48, 492, 48, 40, 48, 192, 81, 34, 48, 232, 81, 32, 48, 266, 81, 34, 48, 299, 81, 40, 48, 334, 81, 43, 54, 496, 0, 43, 54, 496, 54, 27, 21, 453, 108, 27, 21, 0, 131, 16, 16, 412, 16, 11, 16, 415, 0, 4, 16, 420, 32, 11, 16, 408, 32, 23, 23, 272, 175, 15, 15, 429, 0, 38, 38, 429, 15, 72, 34, 324, 139, 38, 38, 429, 52, 72, 34, 325, 212, 38, 38, 429, 89, 27, 21, 453, 87, 38, 38, 429, 127, 38, 38, 429, 165, 38, 38, 429, 202};
        this.context = Shell.sInstance;
        this.activity = Shell.sInstance;
        setFocusable(true);
        this.holder = getHolder();
        this.holder.addCallback(this);
        this.m_Option = new BitmapFactory.Options();
        this.m_Option.inScaled = false;
        DeviceImage.setOption(this.m_Option);
    }

    public void surfaceChanged(SurfaceHolder holder2, int format, int width, int height) {
    }

    public void surfaceCreated(SurfaceHolder holder2) {
    }

    public void surfaceDestroyed(SurfaceHolder holder2) {
    }

    /* access modifiers changed from: protected */
    public void hideNotify() {
        Game_Draw.frame.reset();
    }

    /* access modifiers changed from: protected */
    public void showNotify() {
    }
}
